package com.cqupt.mapper;

import com.cqupt.pojo.Host;
import org.springframework.stereotype.Repository;

@Repository
public interface HostMapper {
    /**
     * 增加主机信息
     * @param host
     * @return
     */
    public int insertHostInfo(Host host);

    /**
     * 获取用户id
     * @param hostId
     * @return
     */
    public Host getUserInfoById(String hostId);

    /**
     * 更新用户信息
     * @param hostInfo
     * @return
     */
    public int updateHostInfo(Host hostInfo);

    /**
     * 通过id获取用户
     * @param hostId
     * @return
     */
    public Host getUserById(String hostId);
}
